<admintpl file="header" />
<script src="__TMPL__Public/js/WdatePicker.js"></script>
</head>
<body>
	<div class="wrap js-check-wrap">
		<form class="well form-search" method="post" action="{:U('Lesson/showlesson')}">
			课程id：
			<input type="text" name="lid" style="width: 100px;" value="{$where.lid}" > &nbsp; &nbsp;
			上课日期：
			<input class="Wdate" style="width: 100px;" type="text" name='sdate' value="{$where.sdate}" onClick="WdatePicker()"  > &nbsp; &nbsp;
			课程种类：
			<select style="width:100px" name='lessontype' >
				<option value ="" <if condition="$where['lessontype']==0"> selected </if> ></option>
				<option value ="常温瑜伽" <if condition="$where['lessontype']=='常温瑜伽'"> selected </if> >常温瑜伽</option>
				<option value ="空中瑜伽" <if condition="$where['lessontype']=='空中瑜伽'"> selected </if> >空中瑜伽</option>
				<option value="高温瑜伽" <if condition="$where['lessontype']=='高温瑜伽'"> selected </if> >高温瑜伽</option>
				<option value="墙绳瑜伽" <if condition="$where['lessontype']=='墙绳瑜伽'"> selected </if> >墙绳瑜伽</option>
			</select> &nbsp; &nbsp;
			场馆名称： 
			<select style="width:100px" name='sitename'>
				<option value ="" <if condition="$where['sitename'] == '通用'">selected</if> ></option>
				<option value ="二十四城" <if condition="$where['sitename'] == '二十四城'">selected</if> >二十四城</option>
				<option value ="高新" <if condition="$where['sitename'] == '高新'">selected</if> >高新</option>
				<option value="磨子桥" <if condition="$where['sitename'] == '磨子桥'">selected</if> >磨子桥</option>
				<option value="凯旋广场" <if condition="$where['sitename'] == '凯旋广场'">selected</if> >凯旋广场</option>
			</select>
			<input type="submit" class="btn btn-primary" value="搜索" />
			<a class="btn btn-danger" href="{:U('Lesson/clear')}">清空</a>
		</form>
		<table  class="table table-hover table-bordered table-list">
			<tr>
				<th>上课日期</th>
				<th>上课时间</th>
				<th>课程id</th>
				<th>课程名称</th>
				<th>课程种类</th>
				<th>教练id</th>
				<th>场馆名称</th>
				<th>人数上限</th>
				<th>已订人数</th>
				<th>课程简介</th>
				<th>管理员操作</th>
			</tr>
			<volist name='msg' id='show'>
				<tr>
					<td>{$show['sdate']}</td>
					<td>{$show['stime']}</td>
					<td>{$show['lid']}</td>
					<td>{$show['lesson']}</td>
					<td>{$show['lessontype']}</td>
					<td>{$show['coachid']}({$show['coachname']})</td>
					<td>{$show['sitename']}</td>
					<td>{$show['uplimit']}</td>
					<td>{$show['ordered']}</td>
					<input style="display:none;" id='hide{$i}' value="{$show['des']}" />
					<td><span name="smeta.thumb">
							<button class="btn btn-primary btn-small" onClick="javascript:$('#h').css('display','block'); var a=$('#hide{$i}').val();$('#h2').text(a);" >查看详细</button>	
						</span></td>
					<!--pathinfo模式下的参数传递：控制器/方法/参数/参数的值-->
					<td><a class="btn btn-primary btn-small" href='index.php?m=Lesson&a=editlesson&lid={$show.lid}'>修改</a>&nbsp;<a class="btn btn-primary btn-small" href='index.php?m=Lesson&a=sign&lid={$show.lid}'>签到</a>&nbsp;<a class="btn btn-danger btn-small" href='index.php?m=Lesson&a=dellesson&lid={$show.lid}'>删除</a></td>
				</tr>
			</volist>
		</table>
		<div class="pagination">{$page}</div>
	</div>
	<div id='h' class="alert alert-success" style="display:none;position:absolute;top:60%;left:50%;margin:-120px 0 0 -200px;z-index:2;radius:6px;width:400px;height:240px;">
		<button class="close" onClick="javascript:$('#h').css('display','none');">&times;</button>
		<div style="clear:both;"></div>
		<p id='h2'></p>
	</div>
<!--<tc_include file=":footer" />-->
</body>
</html>